# coding: utf-8
# 缓存模块

from sklearn.externals import joblib


def save_model(lr, path):
    joblib.dump(lr, path)


def load_model(path):
    from sklearn.externals import joblib
    return joblib.load(path)


def model_exist(path):
    import os
    return os.path.exists(path)
